package com.hhf.rpc.provider;


import com.hhf.rpc.common.service.UserService;
import com.hhf.rpc.easy.registry.LocalRegistry;
import com.hhf.rpc.easy.server.HttpServer;
import com.hhf.rpc.easy.server.impl.VertxHttpServer;
import com.hhf.rpc.provider.service.UserServiceImpl;

/**
 * @Author hhf
 * @Date 2024/10/15
 * @Description
 */
public class EasyProviderExample {


    public static void main(String[] args) {

        //服务注册
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        //启动服务器
        HttpServer server = new VertxHttpServer();
        server.doStart(8080);


    }
}
